package com.book.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.book.app.entity.Borrow;

import java.util.List;

/**
 * (Borrow)表服务接口
 *
 * @author wjy
 * @since 2021-09-22 08:48:13
 */
public interface BorrowService extends IService<Borrow> {

    List<Borrow> findPager(Integer page, Integer limit, String bname);

    boolean borrowBook(Borrow borrow);

    boolean backBook(Borrow borrow);

    int counter(String bname);
    //统计热门借阅图书
    List<Borrow> getBorrowCounter();
}

